package com.restaurant.application.indexes.couponlist.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.coupon.support.CouponData;
import com.restaurant.application.indexes.couponlist.AssistCouponList;
import com.restaurant.application.indexes.couponlist.mysql.CouponListBean;

import java.util.List;

public class AssistCouponListOutFace implements AssistCouponList {
    private AssistCouponListBase base;

    public AssistCouponListOutFace(AssistCouponListBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public CouponListBean createBean(UID arg0, CouponData arg1) {
        return (CouponListBean) base.call("createBean", arg0, arg1);
    }

    @Override
    public CouponListBean updateBean(UID arg0, CouponData arg1, CouponListBean arg2) {
        return (CouponListBean) base.call("updateBean", arg0, arg1, arg2);
    }

    @Override
    public UID getMyCardUid(String arg0) {
        return (UID) base.call("getMyCardUid", arg0);
    }

    @Override
    public List getMyCardBeanList(UID arg0, String arg1, String arg2) {
        return (List) base.call("getMyCardBeanList", arg0, arg1, arg2);
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }
}
